home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / dev / c / vbcc.lha / vbcc / targets / ppc-warpos / include / errno.h < prev    next >
C/C++ Source or Header  |  2001-04-28  |  5KB  |  121 lines

  1. #pragma begin_header
  2. #ifndef __ERRNO_H
  3. #define __ERRNO_H 1
  4.  
  5. extern  int             errno;
  6.  
  7. #define E_OK            0            /* no error */
  8. #define ERROR           1            /* general error */
  9. #define ENOENT          2            /* No such file or directory */
  10. #define ESRCH           3            /* No such process */
  11. #define EINTR           4            /* Interrrupted system call */
  12. #define EIO             5            /* I/O error */
  13. #define ENXIO           6            /* No such device or address */
  14. #define E2BIG           7            /* Arg list is too long */
  15. #define ENOEXEC         8            /* Exec format error */
  16. #define EBADF           9            /* Bad file number */
  17. #define ECHILD          10           /* No child process */
  18. #define    EDEADLK         11           /* Resource deadlock avoided */
  19.                                      /* 11 was EAGAIN */
  20. #define ENOMEM          12           /* No memory available */
  21. #define EACCES          13           /* Access denied */
  22. #define EFAULT          14           /* Badd address */
  23. #define ENOTBLK         15           /* Bulk device required */
  24. #define EBUSY           16           /* Resource is busy */
  25. #define EEXIST          17           /* File already exists */
  26. #define EXDEV           18           /* Cross-device link */
  27. #define ENODEV          19           /* No such device */
  28. #define ENOTDIR         20           /* Is not a directory */
  29. #define EISDIR          21           /* Is a directory */
  30. #define EINVAL          22           /* Invalid argument */
  31. #define ENFILE          23           /* No more files (system */
  32. #define EMFILE          24           /* No more files (process */
  33. #define ENOTTY          25           /* Not a terminal */
  34. #define ETXTBSY         26           /* Text file is busy */
  35. #define EFBIG           27           /* File is too large */
  36. #define ENOSPC          28           /* No space left */
  37. #define ESPIPE          29           /* Seek issued to pipe */
  38. #define EROFS           30           /* Read-only file system */
  39. #define EMLINK          31           /* Too many links */
  40. #define EPIPE           32           /* Broken pipe */
  41. #define EDOM            33           /* Math function argument error */
  42. #define ERANGE          34           /* Math function result is out of
  43.                                            range */
  44. /* from gcc ... */
  45.  
  46. /* non-blocking and interrupt i/o */
  47. #define    EAGAIN        35        /* Resource temporarily unavailable */
  48. #ifndef _POSIX_SOURCE
  49. #define    EWOULDBLOCK    EAGAIN        /* Operation would block */
  50. #define    EINPROGRESS    36        /* Operation now in progress */
  51. #define    EALREADY    37        /* Operation already in progress */
  52.  
  53. /* ipc/network software -- argument errors */
  54. #define    ENOTSOCK    38        /* Socket operation on non-socket */
  55. #define    EDESTADDRREQ    39        /* Destination address required */
  56. #define    EMSGSIZE    40        /* Message too long */
  57. #define    EPROTOTYPE    41        /* Protocol wrong type for socket */
  58. #define    ENOPROTOOPT    42        /* Protocol not available */
  59. #define    EPROTONOSUPPORT    43        /* Protocol not supported */
  60. #define    ESOCKTNOSUPPORT    44        /* Socket type not supported */
  61. #define    EOPNOTSUPP    45        /* Operation not supported on socket */
  62. #define    EPFNOSUPPORT    46        /* Protocol family not supported */
  63. #define    EAFNOSUPPORT    47        /* Address family not supported by protocol family */
  64. #define    EADDRINUSE    48        /* Address already in use */
  65. #define    EADDRNOTAVAIL    49        /* Can't assign requested address */
  66.  
  67. /* ipc/network software -- operational errors */
  68. #define    ENETDOWN    50        /* Network is down */
  69. #define    ENETUNREACH    51        /* Network is unreachable */
  70. #define    ENETRESET    52        /* Network dropped connection on reset */
  71. #define    ECONNABORTED    53        /* Software caused connection abort */
  72. #define    ECONNRESET    54        /* Connection reset by peer */
  73. #define    ENOBUFS        55        /* No buffer space available */
  74. #define    EISCONN        56        /* Socket is already connected */
  75. #define    ENOTCONN    57        /* Socket is not connected */
  76. #define    ESHUTDOWN    58        /* Can't send after socket shutdown */
  77. #define    ETOOMANYREFS    59        /* Too many references: can't splice */
  78. #define    ETIMEDOUT    60        /* Connection timed out */
  79. #define    ECONNREFUSED    61        /* Connection refused */
  80.  
  81. #define    ELOOP        62        /* Too many levels of symbolic links */
  82. #endif /* _POSIX_SOURCE */
  83. #define    ENAMETOOLONG    63        /* File name too long */
  84.  
  85. /* should be rearranged */
  86. #ifndef _POSIX_SOURCE
  87. #define    EHOSTDOWN    64        /* Host is down */
  88. #define    EHOSTUNREACH    65        /* No route to host */
  89. #endif /* _POSIX_SOURCE */
  90. #define    ENOTEMPTY    66        /* Directory not empty */
  91.  
  92. /* quotas & mush */
  93. #ifndef _POSIX_SOURCE
  94. #define    EPROCLIM    67        /* Too many processes */
  95. #define    EUSERS        68        /* Too many users */
  96. #define    EDQUOT        69        /* Disc quota exceeded */
  97.  
  98. /* Network File System */
  99. #define    ESTALE        70        /* Stale NFS file handle */
  100. #define    EREMOTE        71        /* Too many levels of remote in path */
  101. #define    EBADRPC        72        /* RPC struct is bad */
  102. #define    ERPCMISMATCH    73        /* RPC version wrong */
  103. #define    EPROGUNAVAIL    74        /* RPC prog. not avail */
  104. #define    EPROGMISMATCH    75        /* Program version wrong */
  105. #define    EPROCUNAVAIL    76        /* Bad procedure for program */
  106. #endif /* _POSIX_SOURCE */
  107.  
  108. #define    ENOLCK        77        /* No locks available */
  109. #define    ENOSYS        78        /* Function not implemented */
  110.  
  111. #define    EFTYPE        79        /* Inappropriate file type or format */
  112.  
  113. #ifdef KERNEL
  114. /* pseudo-errors returned inside kernel to modify return to process */
  115. #define    ERESTART    -1        /* restart syscall */
  116. #define    EJUSTRETURN    -2        /* don't modify regs, just return */
  117. #endif
  118.  
  119. #endif
  120. #pragma end_header
  121.